<%@ Register TagPrefix="CS" Namespace="CommunityServer.Controls" Assembly="CommunityServer.Controls" %>
<%@ Register TagPrefix="CA" Namespace="ComponentArt.Web.UI" Assembly="ComponentArt.Web.UI" %>
<%@ Control Language="c#" AutoEventWireup="false" Codebehind="SectionPermissionListControl.ascx.cs" Inherits="CommunityServer.ControlPanel.BlogAdmin.SectionPermissionListControl" TargetSchema="http://schemas.microsoft.com/intellisense/ie5" %>
<script type="text/javascript">
  function refreshGrid()
  {
    <%= Grid1.ClientID %>.Render();
  }
  function onCallbackError(excString)
  {
    if (confirm('<%= CommunityServer.ControlPanel.Components.ResourceManager.GetString("CP_CallBackWarning") %>')) alert(excString);
    <%= Grid1.ClientID %>.Page(1);
  }
</script>
<div id="GrayGrid">
	<CA:grid id="Grid1" runat="server" ScrollPopupClientTemplateId="ScrollPopupTemplate">
		<Levels>
			<CA:gridlevel datakeyfield="RoleIDString">
				<Columns>
					<CA:gridcolumn AllowEditing="False" datafield="Name" headingtext="ResourceManager.CP_Blog_GridCol_Name" />
					<CA:gridcolumn columntype="CheckBox" datafield="View" headingtext="ResourceManager.CP_Blog_GridCol_View"
						align="Center" AllowEditing="True" />
					<CA:gridcolumn columntype="CheckBox" datafield="Post" headingtext="ResourceManager.CP_Blog_GridCol_Post"
						align="Center" AllowEditing="True" />
					<CA:gridcolumn columntype="CheckBox" datafield="Reply" headingtext="ResourceManager.CP_Blog_GridCol_Reply"
						align="Center" AllowEditing="True" />
					<ca:gridcolumn columntype="CheckBox" datafield="Ink" headingtext="ResourceManager.CP_PermissionList_Ink"
						align="Center" AllowEditing="True" />
					<ca:gridcolumn columntype="CheckBox" datafield="Video" headingtext="ResourceManager.CP_PermissionList_Video"
						align="Center" AllowEditing="True" />
					<CA:gridcolumn columntype="CheckBox" datafield="LocalAttachment" headingtext="ResourceManager.CP_Blog_GridCol_LocalAttachment"
						align="Center" AllowEditing="True" />
					<CA:gridcolumn columntype="CheckBox" datafield="RemoteAttachment" headingtext="ResourceManager.CP_Blog_GridCol_RemoteAttachment"
						align="Center" DataCellCssClass="LastDataCell" AllowEditing="True" />
					<ca:gridcolumn visible="False" columntype="CheckBox" datafield="Video" headingtext="ResourceManager.CP_PermissionList_Video"
						align="Center" />
					<CA:gridcolumn datafield="RoleIDString" visible="False" />
				</Columns>
			</CA:gridlevel>
		</Levels>
		<clienttemplates>
			<CA:ClientTemplate Id="ScrollPopupTemplate">
				<table cellspacing="0" cellpadding="2" border="0" class="ScrollPopup">
					<tr>
						<td><div style="font-size:10px;font-family: MS Sans Serif;text-overflow:ellipsis;overflow:hidden;width:130px;"><nobr>## 
									DataItem.GetMember("Name").Value ##</nobr></div>
						</td>
					</tr>
				</table>
			</CA:ClientTemplate>
		</clienttemplates>
	</CA:grid>
</div>
